package com.qingrongby.shop.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;

@Entity
@Setter
@Getter
public class Banner extends BaseEntity{
    @Id
    private Long id;
    private String name;
    private String description;

    private String title;
    private String img;

    @OneToMany(mappedBy = "bannerId",fetch = FetchType.EAGER)
    private List<BannerItem> items;


}
